home *** CD-ROM | disk | FTP | other *** search
AMOS Source Code | 1991-12-03 | 829 b | 31 lines |
- Print "enter x1 value";
- Input A#
- Print "enter x2 value";
- Input B#
- Print "enter y1 value";
- Input C#
- Print "enter y2 value";
- Input D#
- Print " ."
- Print " .:"
- Print " . :"
- Print " C side . y:A side"
- Print " . :"
- Print " . :"
- Print " . z :"
- Print " .......:"
- Print " B side "
- Print ""
- E#=D#-C#
- Print "A side equals=";E#;""
- F#=B#-A#
- Print "B side equals=";F#;""
- G#=Sqr((E#*E#)+(F#*F#)) : Rem PYTHAGORAS THEROM
- Print "The length of side C=";G#;""
- Y#=Cos(F#/G#)
- Degree
- Z#=Acos(Y#)
- Print "angle z=";Z#;" degrees"
- Print "angle y=";180-90-Z#;" degrees(as interior angles of a triangle add up to 180 degrees"
- Rem to tes this program use the numbers 2 for x1,6for x2,3 for y1 and 6 for y2
- Rem